import { Component, OnInit } from '@angular/core'; 
import {Http} from '@angular/http';
import 'rxjs/add/operator/toPromise';
import { HttpService } from '../../services/http.service';  

@Component({
  selector: 'app-logo',
  templateUrl: './logo.component.html',
  providers: [HttpService],
  styleUrls: ['./logo.component.css']
})
export class LogoComponent implements OnInit {

  constructor(private httpService:HttpService,private http:Http) { }
  ngOnInit() { 
       let url = 'http://192.168.10.168:9002/api/advertList?categoryCode=1&top=1'
        this.httpService.httpGet(url).subscribe(res =>{
        // console.log(res)
        }); 
  }

}
